package com.timk.goserver.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.timk.goserver.client.ui.screens.MainPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Main implements EntryPoint {
	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {

		// Assume that the host HTML has elements defined whose
		// IDs are "slot1", "slot2". In a real app, you probably would not want
		// to hard-code IDs. Instead, you could, for example, search for all
		// elements with a particular CSS class and replace them with widgets.
		//
		RootPanel panel = RootPanel.get("slot1");
		panel.add(new MainPanel());
		panel.setWidth("100%");
	}
}
